package com.javachmapi.weixinlogin.enums;

import lombok.Getter;

/**
 * 微商城、小程序前后分离常用到，状态码枚举
 */
@Getter
public enum ResultEnum {

    SUCCESS(0, "成功"),

    WECHAT_MP_ERROR(1, "微信公众账号方面错误"),

    LOGIN_FAIL(2, "登录失败, 登录信息不正确"),

    LOGOUT_SUCCESS(3, "登出成功"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
